//
//  UIScrollView+Refresh.m
//  Castlery
//
//  Created by xie weizhi on 8/9/17.
//  Copyright © 2017 weizhi. All rights reserved.
//

#import "UIScrollView+Refresh.h"

@implementation UIScrollView (Refresh)

- (void)addRefreshHeaderWithTarget:(id)target selector:(SEL)selector {
    MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingTarget:target
                                                                     refreshingAction:selector];
    
    header.stateLabel.hidden = YES;

    self.mj_header = header;
    
}

- (void)addRefreshFooterWithTarget:(id)target selector:(SEL)selector {
    MJRefreshBackNormalFooter *footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:target
                                                                             refreshingAction:selector];
    footer.stateLabel.hidden = YES;
    
    self.mj_footer = footer;    
}

@end
